//
//  YDDViewController.m
//  YDDDeviceInfo
//
//  Created by itzhaolei on 08/17/2024.
//  Copyright (c) 2024 itzhaolei. All rights reserved.
//

#import "YDDViewController.h"
#import <YDDDeviceInfo/YDDDeviceInfo.h>

@interface YDDViewController ()

@end

@implementation YDDViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    NSLog(@"⚠️设备唯一标识符 uuid_ydd  = %@", YDDDeviceInfo.uuid_ydd);
    NSLog(@"⚠️获取音频文件的个数 yddGetAudioCount  = %ld", YDDDeviceInfo.yddGetAudioCount);
    NSLog(@"⚠️获取视频文件的个数 yddGetVideoCount  = %ld", YDDDeviceInfo.yddGetVideoCount);
    NSLog(@"⚠️获取设备型号 yddGetDeviceIdentifier  = %@", YDDDeviceInfo.yddGetDeviceIdentifier);
    NSLog(@"⚠️是否是模拟器  yddIsSimulator  = %ld", YDDDeviceInfo.yddIsSimulator);
    NSLog(@"⚠️总空间 yddTotalDiskSpace  = %@", YDDDeviceInfo.yddTotalDiskSpace);
    NSLog(@"⚠️可用空间 yddFreeDiskSpace  = %@", YDDDeviceInfo.yddFreeDiskSpace);
    NSLog(@"⚠️已使用空间 yddUsedDiskSpace  = %@", YDDDeviceInfo.yddUsedDiskSpace);
    NSLog(@"⚠️wifi名称 获取不到传空 yddGetWiFiName  = %@", YDDDeviceInfo.yddGetWiFiName);
    NSLog(@"⚠️上次活跃时间戳(秒) yddLastRecordTime  = %@", YDDDeviceInfo.yddLastRecordTime);
    NSLog(@"⚠️开机时间到现在的毫秒数（包括睡眠时间） yddGetElapsedMillisecondsSinceBootAsInteger  = %ld", YDDDeviceInfo.yddGetElapsedMillisecondsSinceBootAsInteger);
    NSLog(@"⚠️获取mac地址 yddMacAddress  = %@", YDDDeviceInfo.yddMacAddress);
    NSLog(@"⚠️获取设备是否设置了代理 yddGetProxyStatusWithDomain  = %ld", [YDDDeviceInfo yddGetProxyStatusWithDomain:@"https://www.baidu.com"]);
    NSLog(@"⚠️获取设备是否设置了VPN yddIsVPNEnabled  = %ld", YDDDeviceInfo.yddIsVPNEnabled);
    NSLog(@"⚠️获取当前设备运营商无线接入技术 yddGetCurrentCarrierRadioAccessTechnology  = %@", YDDDeviceInfo.yddGetCurrentCarrierRadioAccessTechnology);
    NSLog(@"⚠️cpu核数 yddGetNumberOfCPUCores  = %ld", YDDDeviceInfo.yddGetNumberOfCPUCores);
    NSLog(@"⚠️可清理内存 yddFreeMemoryInBytes  = %@", YDDDeviceInfo.yddFreeMemoryInBytes);
    NSLog(@"⚠️不活动内存大小 yddGetInactiveMemorySizeInBytes  = %@", YDDDeviceInfo.yddGetInactiveMemorySizeInBytes);
    NSLog(@"⚠️活动内存大小 yddGetCurrentMemoryUsageInBytes  = %@", YDDDeviceInfo.yddGetCurrentMemoryUsageInBytes);
    NSLog(@"⚠️保留内存 单位Byte yddGetWiredMemorySizeInBytes  = %@", YDDDeviceInfo.yddGetWiredMemorySizeInBytes);
    NSLog(@"⚠️是否支持VOIP  = %d", YDDDeviceInfo.yddAllowsVOIP);
    NSLog(@"⚠️网络类型 2G、3G、4G、5G、wifi、other、none  = %@", YDDDeviceInfo.yddGetNetworkType);
    NSLog(@"⚠️国家码  = %@", YDDDeviceInfo.yddGetMobileCountryCode);
    NSLog(@"⚠️获取载体名  = %@", YDDDeviceInfo.yddGetCarrierName);
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
